package com.imti.mall.order.service.Impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.imti.mall.model.user.pojo.UmsMemberReceiveAddress;
import com.imti.mall.order.mapper.MemberReceiveAddressMapper;
import com.imti.mall.order.service.MemberReceiveAddressService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MemberReceiveAddressServiceImpl extends ServiceImpl<MemberReceiveAddressMapper, UmsMemberReceiveAddress> implements MemberReceiveAddressService {

    @Autowired
    private MemberReceiveAddressMapper memberReceiveAddressMapper;

    @Override
    public List<UmsMemberReceiveAddress> memberReceiveAddressList(Long memberId) {
        return memberReceiveAddressMapper.memberReceiveAddressList(memberId);
    }

    @Override
    public UmsMemberReceiveAddress memberReceiveAddress(Long memberId) {
        return memberReceiveAddressMapper.memberReceiveAddress(memberId);
    }

    @Override
    public UmsMemberReceiveAddress memberReceiveAddressById(Integer addressId) {
        return memberReceiveAddressMapper.selectById(addressId);
    }
}
